﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Dtos
{
    public class UsersDto: BaseDto
    {
        public int Id { get; set; }
        

        private string _account;
        public string Account
        {
            get
            {
                return _account;
            }
            set
            {
                _account = value; OnPropertyChanged();
            }
        }

        private string _userName;
        public string UserName
        {
            get
            {
                return _userName;
            }
            set
            {
                _userName = value; OnPropertyChanged();
            }
        }

        private string _passWord;
        public string PassWord
        {
            get
            {
                return _passWord;
            }
            set
            {
                _passWord = value; OnPropertyChanged();
            }
        }

        //private string _roleName;
        //public string RoleName
        //{
        //    get
        //    {
        //        return _roleName;
        //    }
        //    set
        //    {
        //        _roleName = value; OnPropertyChanged();
        //    }
        //}

        private string? _createTime;
        public string? CreateTime
        {
            get
            {
                return _createTime;
            }
            set
            {
                _createTime = value; OnPropertyChanged();
            }
        }

        private string? _updateTime;
        public string? UpdateTime
        {
            get
            {
                return _updateTime;
            }
            set
            {
                _updateTime = value; OnPropertyChanged();
            }
        }

        private bool _isCheck=false;
        public bool IsCheck
        {
            get
            {
                return _isCheck;
            }
            set
            {
                _isCheck = value; OnPropertyChanged();
            }
        }

        private bool _isReadOnly=true;

        public bool IsReadOnly
        {
            get { return _isReadOnly; }
            set { _isReadOnly = value; OnPropertyChanged(); }
        }

        //private List<int> _roleKey;
        //public List<int> RoleKey
        //{
        //    get
        //    {
        //        return _roleKey;
        //    }
        //    set
        //    {
        //        _roleKey = value; OnPropertyChanged();
        //    }
        //}

        public string? Token { get; set; }

        public List<int>? PermissionKey { get; set; }
    }
}
